#[macro_use]
extern crate rocket;
extern crate serde;

use rocket_db_pools::Database;
use serde::{Deserialize, Serialize};

use crate::ctx::mysql::MorTesting;
use crate::ctx::RouterLoader;
use crate::service::user::service::UserService;

mod ctx;
mod service;


#[launch]
async fn rocket() -> _ {
    rocket::build()
        .attach(MorTesting::init())
        .mount("/", UserService::loader())
}
